<template>
  <div>
     <form action="http://www.itcast.cn">

            <input type="text">

            <button @click.prevent.stop='fn'>提交</button>
            
        </form>
   </div>
</template>
 
<script>
export default {

  data() {
    return {};
  },

  methods: {
    fn(){
      console.log('已阻止');
      
    }
  }
};
</script>

<style scoped>
     
</style>